#!/bin/bash

#假定mybatis-generator-core位于当前用户目录下的maven本地仓库中
#若当前系统环境下已配置java环境变量，执行以下语句

#java -jar $HOME/.m2/repository/org/mybatis/generator/mybatis-generator-core/1.4.0/mybatis-generator-core-1.4.0.jar -configfile generator.xml -overwrite

#如果未配置java环境变量，须指定java的bin目录，例

$HOME/eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_15.0.2.v20210201-0955/jre/bin/java -jar $HOME/.m2/repository/org/mybatis/generator/mybatis-generator-core/1.4.0/mybatis-generator-core-1.4.0.jar -configfile generator.xml -overwrite